import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'

// 客户账户扣款管理录入
export function custAccDeductionEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManage/CustAccDeductionEntry/save`,
    method: 'post',
    data:data
  })
}


//客户账户扣款管理审核查询
export const apiUrlConfigApproveQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManage/CustAccDeductionApprove/search`,
}

//客户账户扣款管理审核查询
export const apiUrlConfigApprovedetailTabSearch = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManage/CustAccDeductionApprove/detailTabSearch`,
}


// 客户账户扣款管理审核明细
export function custAccDeductionApproveDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManage/CustAccDeductionApprove/detail`,
    method: 'get',
    params: { id:data.id }
  })
}

// 客户账户扣款管理审核通过
export function custAccDeductionApproveApprove(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManage/CustAccDeductionApprove/approve`,
    method: 'post',
    data:data
  })
}

// 客户账户扣款管理审核拒绝
export function custAccDeductionApproveReject(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManage/CustAccDeductionApprove/reject`,
    method: 'post',
    data:data
  })
}




//客户账户扣款管理查询
export const apiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManage/CustAccDeductionQuery/search`,
}

//客户账户扣款管理明细查询
export const apiUrlConfigDetailQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManage/CustAccDeductionQuery/detailTabSearch`,
}

//客户账户扣款管理应答明细查询
export const apiUrlConfigAnswerDetailQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManage/CustAccDeductionQuery/answerDtlTabSearch`,
}


// 客户账户扣款管理明细
export function custAccDeductionQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManage/CustAccDeductionQuery/detail`,
    method: 'get',
    params: { id:data.id }
  })
}

// 客户账户扣款管理应答明细
export function custAccDeductionQueryAnswerDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/centralAgentPayInOut/custAccDeductionManage/CustAccDeductionQuery/answerDetail`,
    method: 'get',
    params: { id:data.id }
  })
}
